package com.kkh;


import java.io.File;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;

public class ExcelReader {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception{
		Workbook wb=Workbook.getWorkbook(new File("data.xls"));
		Sheet s = wb.getSheet(0);
		
		int i=0;
		while (true) {
			try {
				Cell c = s.getCell(0,i);
				Cell c1 = s.getCell(1,i);
				System.out.println(c.getContents()+"\t"+ c1.getContents());
				i++;
			} catch (Exception e) {
				break;
				// TODO: handle exception
			}
			
		}

	}

}
